#ifndef MAN_H
#define MAN_H

#include <QWidget>
#include "Head.h"
#include "Node.h"
#include "Join.h"

class Man
{
	QWidget* _parent;
	int _x, _y, _w, _h;

	Head* _head;

	Node* _nlad, *_nlau, *_nrad, *_nrau;
	Node* _nlld, *_nllu, *_nrld, *_nrlu;
	Node* _nu, *_nm, *_nd;

	Join* _jlad, *_jlau, *_jrad, *_jrau;
	Join* _jlld, *_jllu, *_jrld, *_jrlu;
	Join* _ju, *_jd;

public:
	Man(QWidget* parent = NULL);
	~Man();
	void setPosition(int x, int y);
	void setRect(int w, int h);
	Head* head();
	void setVisible(bool visible);

protected:
	void updateWidgets();
};

#endif // MAN_H
